#!/usr/bin/python
# -*- coding: utf-8 -*-
import maya.cmds as mc
import maya.mel as mel
import OF3D_zchPipePublicClass as PublicClass
class CheckingRig(PublicClass.PublicClass):
        def checkRepeatName(self):
		self.checkRepeatName()
        def checkHasModel(self):
                if not mc.objExists("model"):
                        self.mayaWarning("No display layer model.")
                else:
                        if mc.getAttr("model.displayType")!=2:
                                self.mayaWarning("No display layer model.")
        def checkHasCtrl(self):
                if not mc.objExists("ctrl"):
                        self.mayaWarning("No display layer ctrl.")